package com.ming_za.odupdaterserver.core.mco_core.Cmd.BasisCmd;

import com.ming_za.odupdaterserver.OdUpdaterServerApplication;
import com.ming_za.odupdaterserver.core.mco_core.API.CmdOperate;
import com.ming_za.odupdaterserver.core.mco_core.Cmd.CmdCreate;

@CmdCreate(cmd = "stop",explain = "关闭该程序")
public class StopCmd implements CmdOperate {
    @Override
    public boolean onCommand(String command, String[] args) {
        OdUpdaterServerApplication.tryShutdown();
        return true;
    }
}
